﻿@model SGC_CarteraClientes.Models.CA_PROSPECTO_PRELIM

@{
    ViewBag.Title = "Modificar";
}

<h2>Modificar Prospeecto preliminar</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Prospecto Preliminar</legend>

        <div class="editor-label">
            @Html.Label("ID Prospecto")
        </div>
        <div class="editor-field noView">
            @Html.EditorFor(model => model.PROSP_ID)
            @Html.ValidationMessageFor(model => model.PROSP_ID)
        </div>
                 <div class="editor-field">
            @Html.TextBoxFor(model => model.PROSP_ID, new { @disabled="disabled",@size = "10" })
            @*Html.ValidationMessageFor(model => model.PROSP_ID) *@
        </div>

        <div class="editor-label">
            @Html.Label("Apellido Paterno")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_APPAT)
            @Html.ValidationMessageFor(model => model.PROSP_APPAT)
        </div>

        <div class="editor-label">
            @Html.Label("Apellido Materno")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_APMAT)
            @Html.ValidationMessageFor(model => model.PROSP_APMAT)
        </div>

        <div class="editor-label">
            @Html.Label("Nombre")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_NOMS)
            @Html.ValidationMessageFor(model => model.PROSP_NOMS)
        </div>

        <div class="editor-label">
            @Html.Label("Telefono")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_TELF)
            @Html.ValidationMessageFor(model => model.PROSP_TELF)
        </div>

        <div class="editor-label">
            @Html.Label("Direccion")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_DIRE)
            @Html.ValidationMessageFor(model => model.PROSP_DIRE)
        </div>

        <div class="editor-label">
            @Html.Label("email")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_MAIL)
            @Html.ValidationMessageFor(model => model.PROSP_MAIL)
        </div>

        <div class="editor-label">
            @Html.Label("Sueldo")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_SUEL)
            @Html.ValidationMessageFor(model => model.PROSP_SUEL)
        </div>
         <div class="editor-label">
                     @Html.Label("Tipo Documento")
                </div>
                <div class="editor-field">
                    @{ 
           List<SelectListItem> li_tdoc= new List<SelectListItem>();
           li_tdoc.Add(new SelectListItem
                {
                  Text = "DNI",
                  Value = "01"
                });
           li_tdoc.Add(new SelectListItem
                {
                    Text = "RUC",
                    Value = "01",
                    Selected = true
                });
           li_tdoc.Add(new SelectListItem
           {
               Text = "CE",
               Value = "03"
           });
           li_tdoc.Add(new SelectListItem
                {
                    Text = "Otro",
                    Value = "99"
                });
            }
        
                @Html.DropDownListFor(model => model.PROSP_TDOC,  (li_tdoc))          
                    @Html.ValidationMessageFor(model => model.PROSP_TDOC)
                </div>
        <div class="editor-label">
            @Html.Label("Nro Doc")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.PROSP_NDOC)
            @Html.ValidationMessageFor(model => model.PROSP_NDOC)
        </div>


        <div class="editor-label">
            @Html.LabelFor(model => model.PROSP_ID_ANT)
        </div>
        <div class="editor-field noView">
            @Html.EditorFor(model => model.PROSP_ID_ANT)
            @Html.ValidationMessageFor(model => model.PROSP_ID_ANT)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model =>  model.PROSP_ID_ANT, new { @disabled="disabled",@size = "10" })

        </div>
        <p>
            <input type="submit" value="Guardar" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Volver", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
